{% extends 'web_template/default_one/templates/public/base.html' %}
{% block title %}搜索{{ tlcms.search.search }}结果页面{{ tlcms.search.search }}{% endblock %}
{% block keywords %}搜索{{ tlcms.search.search }}结果页面{% endblock %}
{% block description %}{% endblock %}
{% block header %}
    <link href="{{ 'css/list.css'|tl_static }}" rel="stylesheet">
{% endblock %}
{% block article %}
    <article>
        <div class="l_box f_l">
            <div class="topnews">
                <h2><span></span><b>搜索 {{ tlcms.search.search }} 的结果：{{ tlcms.search.page.total }} 条记录</b></h2>
                {% for foo in tlcms.search.dataList %}
                    <div class="blogs">
                        <figure><img src="{{ foo.imgUrl }}"></figure>
                        <ul>
                            <h3><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}" style="color: {{ foo.title_color }}">{{ foo.title }}</a></h3>
                            <p>{{ foo.description[:150] }}</p>
                            <p class="autor"><span class="lm f_l"><a href="javascript:;">{{ foo.author }}</a></span><span class="dtime f_l">{{ foo.update_time }}</span><span class="viewnum f_r"><a href="javascript:;">{{ foo.clicks }}</a></span><span class="pingl f_r"><a href="javascript:;">{{ foo.comment_num }}</a></span></p>
                        </ul>
                    </div>
                {% endfor %}
            </div>
            {% if tlcms.search.page.pages > 1 %}
                <div class="page"><a title="Total record" href="javascript:;"><b>{{ tlcms.search.page.pages }}</b></a>
                    {% if tlcms.search.page.prev %}
                        <a href="{{ url_for('webapp_bp.search') }}?page={{ tlcms.search.page.prevPage }}&keywords={{ tlcms.search.search }}">&lt;</a>
                    {% endif %}
                    <b>{{ tlcms.search.page.currentPage }}</b>
                    {% for page in tlcms.search.page.iter_pages %}
                        <a href="{{ url_for('webapp_bp.search') }}?page={{ page }}&keywords={{ tlcms.search.search }}">{{ page }}</a>
                    {% endfor %}
                    {% if tlcms.search.page.next %}
                        <a href="{{ url_for('webapp_bp.search') }}?page={{ tlcms.search.page.nextPage }}&keywords={{ tlcms.search.search }}">&gt;</a>
                    {% endif %}
                </div>
            {% endif %}
        </div>
        <div class="r_box f_r">
            <div class="tit01">
                <h3>网站公告</h3>
                <div class="notice">
                    <ul>
                        {% for foo in tlcms.notice[:6] %}
                            <li><a href="javascript:;" data-notice="{{ foo.notice_content }}">{{ foo.notice_title }}</a></li>
                        {% endfor %}
                    </ul>
                </div>
            </div>
            <!--tit01 end-->
            <div class="ad300x100"><img src="{{ 'images/1.jpg'|tl_static }}"></div>
            <div class="moreSelect" id="lp_right_select">
                <div class="ms-top">
                    <ul class="hd" id="tab">
                        <li class="cur"><a href="javascript:;">随机推荐</a></li>
                        <li><a href="javascript:;">点击排行</a></li>
                        <li><a href="javascript:;">站长推荐</a></li>
                    </ul>
                </div>
                <div class="ms-main" id="ms-main">
                    <div class="bd bd-news">
                        <ul>
                            {% for foo in tlcms.ran_doc[:6] %}
                                <li><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}" target="_blank" style="color: {{ foo.title_color }}">{{ foo.title }}</a></li>
                            {% endfor %}
                        </ul>
                    </div>
                    <div style="display: block;" class="bd bd-news">
                        <ul>
                            {% for foo in tlcms.click_doc[:6] %}
                                <li><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}" target="_blank" style="color: {{ foo.title_color }}">{{ foo.title }}</a></li>
                            {% endfor %}
                        </ul>
                    </div>
                    <div class="bd bd-news">
                        <ul>
                            {% for foo in tlcms.con_rec[:6] %}
                                <li><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}" target="_blank" style="color: {{ foo.title_color }}">{{ foo.title }}</a></li>
                            {% endfor %}
                        </ul>
                    </div>
                </div>
            </div>
            <div class="tuwen">
                <h3>图文推荐</h3>
                <ul>
                    {% for foo in tlcms.con_rec[:6] %}
                        <li><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}"><img src="{{ foo.imgUrl }}" alt="{{ foo.title }}"><b>{{ foo.title }}</b></a>
                            <p><span class="tulanmu"><a href="{{ url_for('webapp_bp.article_page',uid=foo.ID) }}">{{ foo.description[:25] }}</a></span>
                                <span class="tutime">{{ foo.update_time }}</span></p>
                        </li>
                    {% endfor %}
                </ul>
            </div>
            <div class="ad"><img src="{{ 'images/5.jpg'|tl_static }}"></div>
        </div>
    </article>
{% endblock %}

